package com.ming.common;

/**
 * 业务结果消息枚举
 */
public enum CodeMsg {
    SUCCESS(200,"操作成功"),

    USER_LOGIN_ERROR(4002001,"账号或者密码不正确"),

    USER_NO_PERMISSION_ERROR(4002002,"用户权限不足"),
    USER_LOGIN_NAME_EXIST_ERROR(4002003,"用户登录名已被占用"),
    USER_PHONE_EXIST_ERROR(4002004,"用户手机号已被占用"),
    USER_VALID_ERROR(4002004,"重置失败,无效ID"),
    USER_PASSWORD_ERROR(4002005,"密码错误,修改失败"),

    CUSTOMER_PHONE_EXIST_ERROR(4003001,"用户手机号已被占用"),
    CUSTOMER_IDCARD_ERROR(4003002,"用户身份证号错误"),

    BOOK_SAVE_ERROR(4004001,"电子书保存失败"),
    BOOK_NUM_EXIST_ERROR(4004002,"书籍已经存在"),
    BOOK_STATE_CHANGE_ERROR(4004003,"书籍状态发生改变"),
    USER_NOT_EXIST_ERROR(4004004,"借阅失败,用户不存在"),
    BOOK_NOT_RENT_ERROR(4004005,"借阅失败,图书不可借阅"),
    RENT_FLAG_ERROR(4004006,"还书败,借阅状态发生改变"),

    ;

    public  Integer code;

    public String msg;

    CodeMsg(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}

